﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using KCL.Code.Entities;
using KCL.Code.Data;
using System.Data;

namespace KCL.Code.Business
{
    public static class UserServices
    {
        public static bool CreateNewUser(ref User user)
        {
            UserDAO userDAO = new UserDAO();
            //return userDAO.CreateNewUser(ref user);
            return false;
        }

        public static List<User> GetStaffList()
        {
            UserDAO userDAO = new UserDAO();
            //return userDAO.GetStaffList(10,0,"id");
            return null;
        }

        public static bool DeleteUserByID(int id)
        {
            UserDAO userDAO = new UserDAO();
            return userDAO.DeleteUserByID(id);
        }

        public static DataTable CheckUserLogin(string username, string password)
        {
            UserDAO userDAO = new UserDAO();
            return userDAO.CheckUserLogin(username, password);
        }
    }
}